package com.logos;

import com.logos.config.SpringConfig;
import com.logos.dao.BookDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AppForAopQuickStart {

    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookDao bookDao = (BookDao) ctx.getBean("bookDaoImpl");
        int num = bookDao.select();
        System.out.println("num = " + num);
    }
}
